package io.jee.caisan.weixin.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.DynamicUpdate;


/**
 * 系统日志
 * 
 * @author xiexx
 *
 */
@Entity
@DynamicUpdate
public class Log {

	/**
	 * 系统日志
	 */
	public static final Integer TYPE_SYSTEM = 0;
	/**
	 * 操作日志
	 */
	public static final Integer TYPE_OPERATE = 1;
	
	/**
	 * ID
	 */
	private Integer id;
	/**
	 * 日志类型
	 */
	private Integer type;
	/**
	 * 日志内容
	 */
	private String content;
	/**
	 * 创建者ID
	 */
	private Integer createId;
	/**
	 * 创建者
	 */
	private String creater;
	/**
	 * 创建时间
	 */
	private Date createTime;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
